<?php 
$_options = array(
	'name'	=>	'default'
);
if (isset($settings)) {
	$_options = am($_options, $settings);
}
?>
<!-- Dialogs : Begin -->
<div id='<?php echo $_options['name']?>_related_images_dialogs'>
<div id='<?php echo $_options['name']?>_upload_image_div' class='cake_form' title='<?php __("Upload New Image")?>'>
<?php 
echo $form->create('RelatedImage', array(
	'url'	=>	array(
		'plugin'		=>	'related_images',	
		'controller'	=>	'manage',
		'action'		=>	'ajax_upload_image'
	),
	'id'	=>	$_options['name']."_upload_related_image",
	'enctype'	=>	'multipart/form-data'
));

echo $form->input('title', array('label'=>__("Tiêu đề: ", true), 'id'=>$_options['name']."_add_related_image_title", 'maxLength' => 60));
$options = array(
	'name'				=>	'',
	'path'				=>	'',
	'field_name'		=>	'image',
	'label'				=>	__('Hình ảnh',true),
	'legend_title'		=>	__("Hình ảnh", true),
	'delete_image_link'	=>	''
);
echo $html->form_image($options,array('id'=>$_options['name'].'_add_field_image'));

echo $form->input('description', array('label'=>__("Mô tả ngắn: ", true), 'cols'=>77, 'id'=>$_options['name']."_add_related_image_description", 'maxLength' => 1000));

echo $form->end(__('Upload', true), array('id'=>'btnSubmit'));
?>
</div>

<div id='<?php echo $_options['name']?>_edit_image_div' class='cake_form' title='<?php __("Update Image Information")?>'></div>
</div>
<!-- Dialogs : End -->